Count overruns when profiling; change units to ns.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 2 Oct 2012 06:30:40 +0000 (23:30 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 2 Oct 2012 06:30:40 +0000 (23:30 -0700)
commit26b5f34cb350377e43ba1bf8bd22b34760bb049a
tree8bf9091e14d547d70518bc5e1e0e13920f1e76c4
parent918601d229222c3a0689d5063e6499fc7a1b256d
Count overruns when profiling; change units to ns.

* lisp/profiler.el (profiler-sampling-interval): Change units
from ms to ns, multiplying the default by 1000000 so that
it remains 1 ms.
(profiler-report-cpu-line-format): Give enough room for
the maximum counters on 64-bit hosts.
(profiler-report-render-calltree-1): Call them "CPU samples",
not "Time (ms)", since they are not milliseconds now (and
never really were).
* src/profiler.c (handle_profiler_signal): Count sampling intervals, not ms.
Give extra weight to samples after overruns, to attempt to count
the time more accurately.
(setup_cpu_timer): Change sampling interval units from ms to ns, since
the underlying primitives nominally do ns.
(Fprofiler_cpu_start): Document the change.  Mention that
the sampling intervals are only approximate.
lisp/ChangeLog
lisp/profiler.el
src/ChangeLog
src/profiler.c